 

package com.zdkj.admin.api.vo;

import com.zdkj.admin.api.entity.SysRole;
import com.zdkj.common.core.sensitive.Sensitive;
import com.zdkj.common.core.sensitive.SensitiveTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author cui_com
 * @date 2017/10/29
 */
@Data
@ApiModel(value = "前端用户展示对象")
public class UserVO implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@ApiModelProperty(value = "主键")
	private Integer userId;
	/**
	 * 用户名
	 */
	@ApiModelProperty(value = "用户名")
	private String username;
	/**
	 * 员工编号
	 */
	@ApiModelProperty(value = "员工编号")
	private String userCode;
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码")
	private String password;
	/**
	 * 随机盐
	 */
	@ApiModelProperty(value = "随机盐")
	private String salt;
	/**
	 * 微信openid
	 */
	@ApiModelProperty(value = "微信open id")
	private String wxOpenid;
	/**
	 * QQ openid
	 */
	@ApiModelProperty(value = "qq open id")
	private String qqOpenid;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/**
	 * 修改时间
	 */
	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updateTime;
	/**
	 * 0-正常，1-删除
	 */
	@ApiModelProperty(value = "删除标记,1:已删除,0:正常")
	private String delFlag;
	/**
	 * 锁定标记
	 */
	@ApiModelProperty(value = "锁定标记,0:正常,9:已锁定")
	private String lockFlag;
	/**
	 * 固定电话
	 */
	@ApiModelProperty(value = "固定电话")
	private String phone;
	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
	private String avatar;
	/**
	 * 部门ID
	 */
	@ApiModelProperty(value = "所属部门")
	private Integer deptId;
	/**
	 * 租户ID
	 */
	@ApiModelProperty(value = "所属租户")
	private Integer tenantId;
	/**
	 * 部门名称
	 */
	@ApiModelProperty(value = "所属部门名称")
	private String deptName;
	/**
	 * 角色列表
	 */
	@ApiModelProperty(value = "拥有的角色列表")
	private List<SysRole> roleList;

	/**
	 * 账号昵称
	 */
	@ApiModelProperty(value = "账号昵称")
	private String nikename;

	/**
	 * email
	 */
	@ApiModelProperty(value = "email")
	private String email;

	/**
	 * 钉钉id
	 */
	@ApiModelProperty(value = "钉钉id")
	private String dingdingId;

	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号")
	@Sensitive(type = SensitiveTypeEnum.MOBILE_PHONE)
	private String mobilePhone;
	/**
	 * 是否是线路人员
	 */
	@ApiModelProperty(value = "是否是线路人员 true:1 false:0")
	private Boolean belongToLine;
	/**
	 * 线路code
	 */
	@ApiModelProperty(value = "线路code")
	private String lineCode;
	/**
	 * 车站code
	 */
	@ApiModelProperty(value = "车站code")
	private String stationCode;
	/**
	 * 用户标识: ACC SC LC
	 */
	@ApiModelProperty(value = "用户标识: ACC SC LC ")
	private String flag;

	@ApiModelProperty(value = "设备操作号 ")
	private String deviceOperateNo;

	@ApiModelProperty(value = "管辖车站，空或空串表示不管辖，格式请使用json数组，如：" +
			"：[{\"line\":\"4号线\",\"station\":\"金乎沱\"},{\"line\":\"4号线\",\"station\":\"大雁塔\"},{\"line\":\"2号线\",\"station\":\"钟楼\"}]")
	private String managementLineStation;
}
